package com.ws.simplegame;

import com.ws.simplegame.R;
import com.ws.simplegame.KrestikinolikiModel;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;

public class KrestikiNoliki extends Activity implements OnClickListener {

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
		
		View newGameButton = findViewById(R.id.new_game_button);
		newGameButton.setOnClickListener(this);
	}

	public void onClick(View v) {
		switch (v.getId()) {
		case R.id.new_game_button: 
			KrestikinolikiModel.getInstance().newGame();
			startActivity(new Intent(this, GamePlay.class));
			break;
		default:
			break;
		}
	}

}